<?php
/**
 * $Id: default.php 10571 2008-07-21 01:27:35Z pasamio $
 */
defined( '_JEXEC' ) or die( 'Restricted access' );
$baseurl = JURI::base();
$product_image_url = $baseurl.'/images/products';
$theme_url = $baseurl.'/templates/cpj/';
?>
<div id="mainContainner">
<table width="100%" cellspacing="0" cellpadding="0" border="0" align="center">    
	<tr>
		<td width="10"></td>
    	<td width="56" valign="top"><img src="<?php echo $theme_url ?>images/profile1.png"/></td>
		<td class="componentheading"><?php echo JText::_('EMPLOYMENT APPLICATION') ?></td>
	</tr>    
	<tr><td colspan="3"> </td></tr>
</table>
<table width="100%" cellspacing="0" cellpadding="0" border="0" class="bg_order_detail">
	<tr>
		<td style="padding-left: 0px;">
			<form name="career" method="post" action="index.php">
			<input type="hidden" name="task" value="apply_job" />
			<input type="hidden" name="option" value="com_products" />
  <table width="100%" cellspacing="0" cellpadding="0" align="center" style="font-family:Arial, 
Helvetica, sans-serif; font-size:11px;border: 1px #CCCCCC solid; color:#4F4D4C; padding-left:20px; padding-right:20px;">
  <tr><td>&nbsp;</td></tr>
  <tr>
  <td colspan="3" style="font-size:11px; font-family:Verdana, Arial, Helvetica, sans-serif; padding-top:20px; text-align:justify;">
 <?php echo JText::_('Applicants are considered for positions for which they are qualified and employees are treated during employment without regard to race, color, religion, sexual orientation, national origin, age, marital status, mental or physical disability, or any other legally protected status, as required by compa jewelry.')?>
  </td>
  </tr>
  <tr><td>&nbsp;&nbsp;</td></tr>
   <!--Start-PERSONAL-->
   <tr><td colspan="3" style="font-size:18px; padding-top:10px; text-align:center"><?php echo JText::_('PERSONAL')?></td>
  </tr>
  <tr><td>&nbsp;</td></tr>
  <tr>
    <td width="100%"><?php echo JText::_('Last Name')?>&nbsp;:&nbsp;&nbsp;<input class="style1" id="lastname"  name="lastname" type="text" size="32">&nbsp;&nbsp; 
	<?php echo JText::_('First Name')?>&nbsp;:<input class="style1" id="firstname"  name="firstname" type="text" size="30"> 	ID, CMND #:<input  class="style1" id="IDNumber"  name="IDNumber" type="text" size="15"> </td>
  </tr>
  <tr><td>&nbsp;</td></tr>
  <tr>
    <td><?php echo JText::_('Street Address')?>&nbsp;:&nbsp;<input class="style1" id="address"  name="address" type="text" size="105"> </td>
  </tr>
  <tr><td>&nbsp;</td></tr>
  <tr>
    <td><?php echo JText::_('How long have you been in this address?')?> 
    <input class="style1" id="howlong"  name="howlong" type="text" size="100"></td>
  </tr>
  <tr><td>&nbsp;</td>  </tr>
  <tr>
    <td width="100%"><?php echo JText::_('Home Phone')?>:&nbsp;<input class="style1" id="homephone"  name="homephone" type="text">&nbsp;&nbsp;<?php echo JText::_('Cell Phone')?>:&nbsp;<input class="style1" id="cellphone"  name="cellphone" type="text">Email:&nbsp;<input class="style1" id="email"  name="email" type="text" size="40"> </td>
  </tr>
  <!--End-PERSONAL-->
  
  <!--Start-JOB INTEREST-->
  <tr><td style="font-size:18px; padding-top:20px; text-align:center"><?php echo JText::_('JOB INTEREST')?> </td>
  </tr>
  <tr><td>&nbsp;</td></tr>
  <tr><td width="100%"><?php echo JText::_('Position applying for')?>: &nbsp;<input type="radio" name="position" checked="checked" value="saleperson"><?php echo JText::_('Sale person')?>&nbsp;<input type="radio" name="position" value="goldmith"> <?php echo JText::_('Goldmith')?>&nbsp;<input type="radio" name="position"  value="others"> <?php echo JText::_('Others')?>: &nbsp;<input class="style1" id="Others_posstion"  name="Others_posstion" type="text">&nbsp;&nbsp;<?php echo JText::_('Salary')?>:&nbsp;<input class="style1" id="salary"  name="salary" size="10" type="text">&nbsp;<?php echo JText::_('Ages')?>:&nbsp;<input id="ages" class="style1"  name="ages" type="text" size="10"></td></tr>
  <tr><td>&nbsp;</td></tr>
  <tr><td><?php echo JText::_('Have you ever been employed by compa jewelry before?')?>&nbsp;<input type="radio" name="haveyou" checked="checked" value="Yes" >&nbsp;<?php echo JText::_('Yes')?>&nbsp;&nbsp;<input type="radio" name="haveyou"  value="No">&nbsp;No</td></tr>
<tr><td>&nbsp;</td></tr>
<tr><td><?php echo JText::_('If Yes, Where')?>:<input class="style1" id="where"  name="where" type="text" size="50">&nbsp;<?php echo JText::_('When')?>:<input class="style1" id="when"  name="when" type="text" size="40"><br><br><?php echo JText::_('Availability')?>: <input type="radio" name="time_job" checked="checked" value="fulltime" >&nbsp;<?php echo JText::_('Full time')?>&nbsp;<input type="radio" name="time_job" value="parttime" ><?php echo JText::_('Part time')?>&nbsp;<input type="radio" name="time_job" value="temporary">&nbsp;<?php echo JText::_('Temporary')?></td></tr>
<tr><td>&nbsp;</td></tr>
<tr><td></td></tr>
<tr><td>&nbsp;</td></tr>
<tr><td><?php echo JText::_('Language speaking')?>:&nbsp;&nbsp;<input type="checkbox" name="career_lang[]" value="English" >English&nbsp;&nbsp;<input type="checkbox"  name="career_lang[]" value="Vietnamese">Vietnamese&nbsp;&nbsp;<input type="checkbox"  name="career_lang[]"><?php echo JText::_('Others')?>:
<input class="style1" id="others_lang"  name="others_lang" type="text" size="55">
</td></tr>
<tr><td>&nbsp;</td></tr>
<tr><td><?php echo JText::_('How did you learn of our organization?')?> <input type="radio" name="organization" checked="checked" value="internet" ><?php echo JText::_('Internet')?><input type="radio" name="organization" value="newspaper"><?php echo JText::_('Newspaper')?> <input type="radio" name="organization" value="others"><?php echo JText::_('Others')?>&nbsp;:&nbsp;<input class="style1" id="organization_others"  name="organization_others" type="text" size="40"></td></tr>
<tr><td>&nbsp;</td></tr>
<tr><td><?php echo JText::_('Have you ever been convicted?')?>&nbsp;<input type="radio" name="convicted" checked="checked" value="Yes" >&nbsp;<?php echo JText::_('Yes')?><input type="radio" value="No"  name="convicted"><?php echo JText::_('No')?></td></tr>
<tr><td>&nbsp;</td></tr>
<tr><td><?php echo JText::_('If yes, please describe in full')?>:<input class="style1" id="describe"  name="describe" type="text" size="95"> </td></tr>
<tr><td>&nbsp;</td></tr>
<tr><td><?php echo JText::_('Are you willing to relocate?')?> <input  type="radio" name="relocate" checked="checked" value="yes">&nbsp;<?php echo JText::_('Yes')?><input type="radio" name="relocate" value="No">&nbsp;<?php echo JText::_('No')?></td></tr>
<tr><td>&nbsp;</td></tr>
<tr><td>
<?php echo JText::_('If you are currently employed, why do you wish to leave present your position?')?> <textarea name="noidung" id="noidung" class="style1" cols="50" rows="1"></textarea>
</td></tr>
<tr><td>&nbsp;</td></tr>
 <!--End-JOB INTERNET-->

 <!--Start-EDUCATION-->
<tr><td style="font-size:18px;  text-align:center"><?php echo JText::_('EDUCATION')?></td></tr>
<tr><td>&nbsp;</td></tr>
<tr><td style="font-weight:bold; font-size:11px;"><?php echo JText::_('COLLEGE')?></td></tr>
<tr><td>&nbsp;</td></tr>
<!--table colege-->
<tr><td>
<table width="100%" style="border:1px #CCCCCC solid" >
<tr><td><?php echo JText::_('School name')?></td><td><?php echo JText::_('Yrs. completed')?></td><td><?php echo JText::_('Diploma')?></td></tr>
<tr><td><input class="style1" id="schoolname1"  name="schoolname1" type="text" size="30"></td><td><input class="style1" id="completed1"  name="completed1" type="text" size="30"></td><td><input class="style1" id="diploma1"  name="diploma1" type="text" size="30"></td></tr>
</table>
</td></tr>
<tr><td>&nbsp;</td></tr>
<tr><td  style="font-weight:bold; font-size:11px;"><?php echo JText::_('HIGH SCHOOL')?></td></tr>
<tr><td>&nbsp;</td></tr>
<tr><td>
<table width="100%" style="border:1px #CCCCCC solid" >
<tr><td><?php echo JText::_('School name')?></td><td><?php echo JText::_('Yrs. completed')?></td><td><?php echo JText::_('Diploma')?></td></tr>
<tr><td><input class="style1" id="schoolname2"  name="schoolname2" type="text" size="30"></td><td><input class="style1" id="completed2"  name="completed2" type="text" size="30"></td><td><input class="style1" id="diploma2"  name="diploma2" type="text" size="30"></td></tr>
</table>
</td>
</tr>
<tr><td>&nbsp;</td></tr>
<tr><td style="font-weight:bold; font-size:11px;"><?php echo JText::_('OTHER SCHOOL')?></td></tr>
<tr><td>&nbsp;</td></tr>
<tr><td>
<table width="100%" style="border:1px #CCCCCC solid" >
<tr><td><?php echo JText::_('School name')?></td><td><?php echo JText::_('Yrs. completed')?></td><td><?php echo JText::_('Diploma')?></td></tr>
<tr><td><input class="style1" id="schoolname3"  name="schoolname3" type="text" size="30"></td><td><input class="style1" id="completed3"  name="completed3" type="text" size="30"></td><td><input class="style1" id="diploma3"  name="diploma3" type="text" size="30"></td></tr>
</table>
<tr><td></td>
</tr>
<tr><td>&nbsp;</td></tr>
<!--End-EDUCATION-->

<!--Start-EMPLOYMENT’S HISTORY-->
<tr><td style="font-size:18px; text-align:center"><?php echo JText::_('EMPLOYMENT\'S HISTORY')?></td></tr>
<tr><td>&nbsp;</td></tr>
<tr><td>
<?php echo JText::_('Please give accurate, complete full-time, part-time employment record.Start with the most recent employer.')?>
</td></tr>
<tr><td>&nbsp;</td></tr>
<tr><td style="font-weight:bold; padding-left:350px; "><?php echo JText::_('EMPLOYER')?> # 1</td></tr>
<tr><td>&nbsp;&nbsp;</td></tr>
<tr><td><?php echo JText::_('Company Name')?>:&nbsp;&nbsp;<input class="style1" id="companyname1"  name="companyname1" type="text" size="50">&nbsp;&nbsp;<?php echo JText::_('Telephone')?>:&nbsp;&nbsp;<input class="style1" id="telephone1"  name="telephone1" type="text" size="35"></td></tr>
<tr><td>&nbsp;</td></tr>
<tr><td><?php echo JText::_('Address')?>:<input class="style1" id="address1"  name="address1" type="text" size="111"> </td></tr>
<tr><td>&nbsp;</td></tr>
<tr><td><?php echo JText::_('Name of supervisor')?>:<input class="style1" id="nameofsupervisor1"  name="nameofsupervisor1" type="text" size="30">&nbsp;&nbsp;<?php echo JText::_('Salary')?>:<input class="style1" id="salary1"  name="salary1" type="text" size="10">&nbsp;&nbsp;<?php echo JText::_('Job title')?>:<input class="style1" id="jos_title1"  name="jos_title1" type="text" size="38"></td></tr>
<tr><td>&nbsp;</td></tr>
<tr><td><?php echo JText::_('Reason for leaving')?>:<input class="style1" id="reason1"  name="reason1" type="text" size="100"></td></tr>
<tr><td>&nbsp;</td></tr>
<tr><td style="font-weight:bold; padding-left:350px;"><?php echo JText::_('EMPLOYER')?> # 2</td></tr>
<tr><td >&nbsp;&nbsp;</td></tr>
<tr><td><?php echo JText::_('Company Name')?>:&nbsp;&nbsp;<input class="style1" id="companyname2"  name="companyname2" type="text" size="50">&nbsp;&nbsp;<?php echo JText::_('Telephone')?>:&nbsp;&nbsp;<input class="style1" id="telephone2"  name="telephone2" type="text" size="37"></td></tr>
<tr><td>&nbsp;</td></tr>
<tr><td><?php echo JText::_('Address')?>:<input class="style1" id="address2"  name="address2" type="text" size="112"> </td></tr>
<tr><td>&nbsp;</td></tr>
<tr><td><?php echo JText::_('Name of supervisor')?>:<input class="style1" id="Nameofsupervisor2"  name="Nameofsupervisor2" type="text" size="30">&nbsp;&nbsp;<?php echo JText::_('Salary')?>:<input class="style1" id="salary2"  name="salary2" type="text" size="10">&nbsp;&nbsp;<?php echo JText::_('Job title')?>:<input class="style1" id="job_title2"  name="job_title2" type="text" size="37"></td></tr>
<tr><td>&nbsp;</td></tr>
<tr><td><?php echo JText::_('Reason for leaving')?>:<input class="style1" id="reason2"  name="reason2" type="text" size="100"></td></tr>
<tr><td>&nbsp;</td></tr>
<!--END-EMPLOYMENT’S HISTORY-->

<tr><td style="text-align:justify"><?php echo JText::_('If employed by the company, you understand your employment, is "at will" and you are free to resign at any time. In addition, the company may terminate your employment at any time without prior notice, without liability for wages, salary or any benefits except those earned up to the date of termination. If employed by Compa jewelry, you also understand and agree that you will abide by its rules and regulations.')?></td></tr>
<tr><td>&nbsp;</td></tr>
<tr><td><input type="checkbox" checked="checked">&nbsp;<?php echo JText::_('I agree')?>&nbsp;&nbsp;&nbsp;<?php echo JText::_('Signature (write your full name)')?>:&nbsp;&nbsp;<input class="style1" id="signature"  name="signature" type="text" size="50">&nbsp;&nbsp;<?php echo JText::_('Date')?>:<input class="style1" id="date"  name="date" type="text" size="30"></td></tr>
<tr><td>&nbsp;&nbsp;</td></tr>
<tr><td style="text-align:center;">
<div id="">
<a class="Submit" href="javascript: void(0)" onclick="javascript:submitForm();">[<?php echo JText::_('Submit') ?>]</a>
</div>
</td></tr>
<tr><td>&nbsp;</td></tr>
</table>
</form>
		</td>
	</tr>
</table>

</div>
<script type="text/javascript">
<!--
function submitForm()
{
	//Last Name
	if(document.career.lastname.value=="") 
	{
		alert("<?php echo JText::_('Please fill Last Name!')?>");
		document.career.lastname.focus();
	}
	// First Name
	else if(document.career.firstname.value=="") 
	{
		alert("<?php echo JText::_('Please fill First Name!')?>");
		document.career.firstname.focus();
	}
	// ID Number
	else if(document.career.IDNumber.value=="") 
	{
		alert("<?php echo JText::_('Please fill ID Number!')?>");
		document.career.IDNumber.focus();
	}
	//kiem tra ID Number
	else if(isNaN(document.career.IDNumber.value)) 
	{
			alert("<?php echo JText::_('ID Number has to number!')?>");
			document.career.IDNumber.focus();
	}
	// Dia chi
	else if(document.career.address.value=="") 
	{
		alert("<?php echo JText::_('Please fill Address!')?>");
		document.career.address.focus();
	}
	// Home phone
	else if(document.career.homephone.value=="") 
	{
		alert("<?php echo JText::_('Please fill Home Phone!')?>");
		document.career.homephone.focus();
	}
	else if(isNaN(document.career.homephone.value)) 
	{
			alert("<?php echo JText::_('Home Phone has to number!')?>");
			document.career.homephone.focus();
	}
	else if(document.career.homephone.value.length <7) 
	{
		alert("<?php echo JText::_('Home Phone has to 7 or 10 digits!')?>");
		document.career.homephone.focus();
	}
	else if((document.career.homephone.value.length >7)&&(document.career.homephone.value.length != 10)) 
	{
		alert("<?php echo JText::_('Home Phone has to 7 or 10 digits!')?>");
		document.career.homephone.focus();
	}
	// Cell phone
	else if(document.career.cellphone.value=="") 
	{
		alert("<?php echo JText::_('Please fill Cell Phone!')?>");
		document.career.cellphone.focus();
	}//kiem tra Home Phome phai là số
	else if(isNaN(document.career.cellphone.value)) 
	{
		alert("<?php echo JText::_('Cell Phone has to number!')?>");
		document.career.cellphone.focus();
	}
	else if(document.career.cellphone.value.length <7) 
	{
		alert("<?php echo JText::_('Cell Phone has to 7 or 10 digits!')?>");
		document.career.cellphone.focus();
	}
	else if((document.career.cellphone.value.length >7)&&(document.career.cellphone.value.length != 10)) 
	{
		alert("<?php echo JText::_('Cell Phone has to 7 or 10 digits!')?>");
		document.career.cellphone.focus();
	}
	//Email
	else if(document.career.email.value=="") 
	{
		alert("<?php echo JText::_('Please fill Email!')?>");
		document.career.email.focus();
	}
	else if((document.career.email.value.indexOf("@")==-1) || (document.career.email.value.lastIndexOf(".")==-1))
	{
		alert("<?php echo JText::_('Please fill true form ! True email is myemail@mycompany.com')?>");
		document.career.email.focus();
	}
	
	//salary
	else if(document.career.salary.value=="") 
	{
		alert("<?php echo JText::_('Please fill salary!')?>");
		document.career.salary.focus();
	}
	//Ages
	else if(document.career.ages.value=="") 
	{
		alert("<?php echo JText::_('Please fill ages!')?>");
		document.career.ages.focus();
	}
	//schoolname1
	else if(document.career.schoolname1.value=="") 
	{
		alert("<?php echo JText::_('Please fill School Name!')?>");
		document.career.schoolname1.focus();
	}
	//completed1
	else if(document.career.completed1.value=="") 
	{
		alert("<?php echo JText::_('Please fill year complete!')?>");
		document.career.completed1.focus();
	}
	//diploma1
	else if(document.career.diploma1.value=="") 
	{
		alert("<?php echo JText::_('Please fill Diploma!')?>");
		document.career.diploma1.focus();
	}
	//schoolname2
	else if(document.career.schoolname2.value=="") 
	{
		alert("<?php echo JText::_('Please fill School Name!')?>");
		document.career.schoolname2.focus();
	}
	//completed2
	else if(document.career.completed2.value=="") 
	{
		alert("<?php echo JText::_('Please fill year complete!')?>");
		document.career.completed2.focus();
	}
	//diploma2
	else if(document.career.diploma2.value=="") 
	{
		alert("<?php echo JText::_('Please fill Diploma!')?>");
		document.career.diploma2.focus();
	}
	//companyname1
	else if(document.career.companyname1.value=="") 
	{
		alert("<?php echo JText::_('Please fill Company Name!')?>");
		document.career.companyname1.focus();
	}
	//telephone1
	else if(document.career.telephone1.value=="") 
	{
		alert("<?php echo JText::_('Please fill Telephone Number!')?>");
		document.career.telephone1.focus();
	}
	//kiem tra telephone1
	else if(isNaN(document.career.telephone1.value)) 
	{
		alert("<?php echo JText::_('Telephone has to number!')?>");
		document.career.telephone1.focus();
	}
	else if(document.career.telephone1.value.length <7) 
	{
		alert("<?php echo JText::_('Telephone has to 7 or 10 digits!')?>");
		document.career.telephone1.focus();
	}
	else if((document.career.telephone1.value.length >7)&&(document.career.telephone1.value.length != 10)) 
	{
		alert("<?php echo JText::_('Telephone has to 7 or 10 digits!')?>");
		document.career.telephone1.focus();
	}
	//address1
	else if(document.career.address1.value=="") 
	{
		alert("<?php echo JText::_('Please fill Address!')?>");
		document.career.address1.focus();
	}
	//Nameofsupervisor1
	else if(document.career.nameofsupervisor1.value=="") 
	{
		alert("<?php echo JText::_('Please fill Name of supervisor!')?>");
		document.career.nameofsupervisor1.focus();
	}
	//Salary1
	else if(document.career.salary1.value=="") 
	{
		alert("<?php echo JText::_('Please fill salary!')?>");
		document.career.salary1.focus();
	}
	//job_title1
	else if(document.career.jos_title1.value=="") 
	{
		alert("<?php echo JText::_('Please fill Jos title!')?>");
		document.career.jos_title1.focus();
	}
	//companyname2
	else if(document.career.companyname2.value=="") 
	{
		alert("<?php echo JText::_('Please fill Company Name!')?>");
		document.career.companyname2.focus();
	}
	//telephone2
	else if(document.career.telephone2.value=="") 
	{
		alert("<?php echo JText::_('Please fill Telephone Number!')?>");
		document.career.telephone2.focus();
	}
	//kiem tra telephone2
	else if(isNaN(document.career.telephone2.value)) 
	{
		alert("<?php echo JText::_('Telephone has to number!')?>");
		document.career.telephone2.focus();
	}
	else if(document.career.telephone2.value.length <7) 
	{
		alert("<?php echo JText::_('Telephone has to 7 or 10 digits!')?>");
		document.career.telephone2.focus();
	}
	else if((document.career.telephone2.value.length >7)&&(document.career.telephone2.value.length != 10)) 
	{
		alert("<?php echo JText::_('Telephone has to 7 or 10 digits!')?>");
		document.career.telephone2.focus();
	}
	//address2
	else if(document.career.address2.value=="") 
	{
		alert("<?php echo JText::_('Please fill Address!')?>");
		document.career.address2.focus();
	}
	//Nameofsupervisor2
	else if(document.career.Nameofsupervisor2.value=="") 
	{
		alert("<?php echo JText::_('Please fill Name of supervisor!')?>");
		document.career.Nameofsupervisor2.focus();
	}
	//salary2
	else if(document.career.salary2.value=="") 
	{
		alert("<?php echo JText::_('Please fill salary!')?>");
		document.career.salary2.focus();
	}
	//job_title2
	else if(document.career.job_title2.value=="") 
	{
		alert("<?php echo JText::_('Please fill Jos title!')?>");
		document.career.job_title2.focus();
	}
	//signature		
	else if(document.career.signature.value=="") 
	{
		alert("<?php echo JText::_('Please fill signature!')?>");
		document.career.signature.focus();
	}
	//date		
	else if(document.career.date.value=="") 
	{
		alert("<?php echo JText::_('Please fill date!')?>");
		document.career.date.focus();
	}
	else
	{
		alert("<?php echo JText::_('Thank you about your mail, mail you has been sent successful!') ?>");
		document.career.submit();
	}
}
//-->
</script>